package com.gzx.tjzy.feign;

import com.gzx.tjzy.feign.resp.project.GzxProjectRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import vip.xiaonuo.common.consts.FeignConstant;

import java.util.List;

/**
 * @author zjt
 * @description
 * @since 2025/4/9 17:43
 */
@FeignClient(name = FeignConstant.BIZ_APP, contextId = "TjzyProjectFeign")
public interface GzxProjectFeign {

    /**
     * 根据项目编码获取项目
     *
     * @param companyCode
     * @return
     */
    @RequestMapping("/feign/tjzy/project/getProjectByCompany")
    List<GzxProjectRespDto> getProjectByCompany(@RequestParam String companyCode);

    /**
     * 获取当月所有有案件的项目
     */
    @RequestMapping("/feign/tjzy/project/listCaseProject")
    List<GzxProjectRespDto> listCaseProject();

    /**
     * 获取所有项目的在催案件量和在催人力
     */
    @RequestMapping("/feign/tjzy/project/listCaseDebt")
    List<GzxProjectRespDto> listCaseDebt();

}
